home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Business Assistant
/
Business Assistant.iso
/
indus
/
bf177b
/
vtiupdat.exe
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1991-07-06
|
8KB
|
193 lines
:INSTALL.BAT for use with VIDEO TAPE INVOICING and PKWARE, INC.
:May specify A:INSTALL A: C: where A: is source and C: is destination
echo off
cls
echo off
echo VIDEO TAPE INVOICING
echo Installation and Updating Routine
echo Copyright (C)) 1985-1991 Danny A. Stewart
echo 615 Oak Street, Prescott, ARkansas 71857
echo Phone (501) 887-5930 (6:30-9:00 p.m. Central Time)
echo ─────────────────────────────────────────────────────────────────────────────
:SETSOUR
if ""=="%1" set sour=A:
if ""=="%1" goto SETDEST
set sour=%1
:SETDEST
if ""=="%2" set dest=C:
if ""=="%2" goto ALLSET
set dest=%2
:ALLSET
if ""=="%sour%" goto ENVERR
if ""=="%dest%" goto ENVERR
echo This routine plans to install/update from %sour%\*.*
echo to %dest%\VTI\*.* and to %dest%\VTITUT\*.*
echo If this is not correct, abort with Ctrl-C. Enter the correct parameters with:
echo INSTALL A: C:
echo where A: is the source and C: is the destination.
echo See the README file for other information.
echo ─────────────────────────────────────────────────────────────────────────────
echo Press Ctrl-C to abort this routine, or
pause
if not exist %sour%\NUL goto END
if exist %dest%\NUL goto CHGTOHD
goto END
:CHGTOHD
%dest%
if exist %sour%\COPYVTI.EXE goto VTIINST
if exist %sour%\VTIUPDAT.EXE goto VTIINST
goto ERROR
:VTIINST
if exist %dest%\VTI\NUL goto VTIUPD
cls
echo VIDEO TAPE INVOICING
echo Installing VTI from %sour%\ to %dest%\VTI\
echo (Using PKWARE to explode and unskrink files)
echo ═════════════════════════════════════════════════════════════════════════════
echo CD %dest%\VTI > %dest%\vti.bat
echo SET CLIPPER=V016;R016 >> %dest%\vti.bat
echo VTIMENU >> %dest%\vti.bat
echo CD %dest%\ >> %dest%\vti.bat
echo Created %dest%\VTI.BAT as your loading file.
echo ─────────────────────────────────────────────────────────────────────────────
mkdir %dest%\vti
if not exist %dest%\vti\NUL goto CANTDO
cd %dest%\vti
if exist %sour%\copyvti.exe %sour%\copyvti
if exist %sour%\vtiupdat.exe %sour%\vtiupdat
if not exist pkunzip.exe goto CANTDO
if exist vtitutor.zip del vtitutor.zip
if exist %sour%\params.vti copy %sour%\params.vti %dest%\VTI\params.mem
if exist %sour%\params2.vti copy %sour%\params2.vti %dest%\VTI\params2.mem
goto TUTINST
:VTIUPD
cls
echo VIDEO TAPE INVOICING
echo Updating %dest%\VTI\ from %sour%\
echo (Using PKWARE to explode and unskrink files)
echo ═════════════════════════════════════════════════════════════════════════════
cd %dest%\vti
if exist %sour%\copyvti.exe %sour%\copyvti -e -o vtimenu.exe readme.vti
if exist %sour%\vtiupdat.exe %sour%\vtiupdat -e -o vtimenu.exe readme.vti
goto TUTINST
:TUTINST
if exist %dest%\vtitut\NUL goto TUTUPD
cls
echo VIDEO TAPE INVOICING
echo Installing VTI from %sour%\ to %dest%\VTITUT\
echo (Using PKWARE to explode and unskrink files)
echo ═════════════════════════════════════════════════════════════════════════════
echo CD %dest%\VTITUT > %dest%\vtitut.bat
echo SET CLIPPER=V016;R016 >> %dest%\vtitut.bat
echo VTIMENU >> %dest%\vtitut.bat
echo CD %dest%\ >> %dest%\vtitut.bat
echo Created %dest%\VTITUT.BAT as your loading file.
echo ─────────────────────────────────────────────────────────────────────────────
mkdir %dest%\vtitut
if not exist %dest%\vtitut\NUL goto CANTDO
cd %dest%\vtitut
if exist %sour%\copyvti.exe %sour%\copyvti
if exist %sour%\vtiupdat.exe %sour%\vtiupdat
if not exist pkunzip.exe goto CANTDO
if not exist vtitutor.zip goto CANTDO
pkunzip vtitutor.zip
del vtitutor.zip
goto END1
:TUTUPD
cls
echo VIDEO TAPE INVOICING
echo Updating %dest%\VTITUT\ from %sour%\
echo (Using PKWARE to explode and unskrink files)
echo ═════════════════════════════════════════════════════════════════════════════
cd %dest%\vtitut
if exist %sour%\copyvti.exe %sour%\copyvti -e -o vtimenu.exe readme.vti manual.txt
if exist %sour%\vtiupdat.exe %sour%\vtiupdat -e -o vtimenu.exe readme.vti
goto END1
:END1
cls
echo VIDEO TAPE INVOICING
echo ═════════════════════════════════════════════════════════════════════════════
if not exist %2\config.sys goto ADDCS
type %2\config.sys
echo ─────────────────────────────────────────────────────────────────────────────
echo Please check your existing (shown above) CONFIG.SYS for statements
echo FILES=20
echo BUFFERS=20
echo or higher numbers. This routine does NOT change that file.
echo ─────────────────────────────────────────────────────────────────────────────
goto PART2
:ADDCS
echo Creating %2\CONFIG.SYS file . . .
echo FILES=20 > %2\config.sys
echo BUFFERS=20 >> %2\config.sys
echo You must reboot your computer to make the CONFIG.SYS file effective.
echo ─────────────────────────────────────────────────────────────────────────────
:PART2
echo echo off > part2.bat
if exist %sour%\COPYVTI.EXE goto NODISK2
echo cls >> part2.bat
echo echo VIDEO TAPE INVOICING >> part2.bat
echo :TRYAGAIN >> part2.bat
echo echo ═════════════════════════════════════════════════════════════════════════════ >> part2.bat
echo echo Please insert Diskette #2 (Manual diskette) containing >> part2.bat
echo echo the VTIDOCS.EXE file into drive %sour% and >> part2.bat
echo pause >> part2.bat
echo if not exist %sour%\vtidocs.exe goto TRYAGAIN >> part2.bat
echo %sour%\vtidocs -o >> part2.bat
:NODISK2
echo cls >> part2.bat
echo echo VIDEO TAPE INVOICING >> part2.bat
echo echo ═════════════════════════════════════════════════════════════════════════════ >> part2.bat
echo echo Video Tape Invoicing installed or updated: >> part2.bat
echo echo %dest%\VTI >> part2.bat
echo echo %dest%\VTITUT >> part2.bat
echo echo (unless errors were reported). >> part2.bat
echo echo ───────────────────────────────────────────────────────────────────────────── >> part2.bat
echo echo To print the manual, enter these commands: >> part2.bat
echo echo CD %2\VTITUT >> part2.bat
echo echo COPY MANUAL.TXT PRN: >> part2.bat
echo echo ───────────────────────────────────────────────────────────────────────────── >> part2.bat
echo echo If you just updated, be sure your loading files contain >> part2.bat
echo echo SET CLIPPER=V016;R016 >> part2.bat
echo echo with numbers at least 16. >> part2.bat
echo echo ───────────────────────────────────────────────────────────────────────────── >> part2.bat
echo cd %dest%\ >> part2.bat
pause
part2
:CANTDO
echo ─────────────────────────────────────────────────────────────────────────────
echo Unable to complete the installation or update.
echo The problem may be a missing file:
echo VTITUTOR.ZIP
echo PKUNZIP.EXE
echo The problem may be a disk error which prevented creation of
echo one of these directories:
echo %dest%\VTI
echo or %dest%\VTITUT
goto END
:ERROR
echo ─────────────────────────────────────────────────────────────────────────────
echo At least one of the files necessary to run the Install or Update is
echo not available. Check your distribution diskette for
echo COPYVTI.EXE
echo or VTIUPDAT.EXE and VTIDOCS.EXE
echo If you have more than one diskette, try another diskette.
goto END
:ENVERR
echo The "out of environment space" error can be fixed. Then you can use this
echo routine to install VTI onto your computer. To fix the error, either
echo * temporarily reduce the size of your PATH statement with a command
echo similar to: PATH=C:\DOS
echo * temporarily eliminate some of your system's other SET commands
echo * permanently increase the environment space by adding a command to
echo your CONFIG.SYS file similar to: SHELL=C:\COMMAND.COM /P /E:00500
echo Consult your DOS manual under these topics for more details.
echo ─────────────────────────────────────────────────────────────────────────────
goto ENDEND
:END
echo ─────────────────────────────────────────────────────────────────────────────
if not exist %sour%\NUL echo Please insert distribution diskette and try again
if not exist %dest%\NUL echo You do not have a drive %dest%
if exist %dest%\NUL cd %dest%\
:ENDEND
echo on